import { createRouter, createWebHistory } from 'vue-router'

import LoginView from '../views/LoginView.vue'
import dashboardView from '../views/dashboardView.vue'
import CourseAddedView from '../views/CourseManageView/AddCourse.vue';
import CourseInfoView from '../views/CourseManageView/CourseInfo.vue';
import CourseStuView from '../views/CourseManageView/CourseStudent.vue';
import CourseAgentView from '../views/CourseManageView/CourseAgent.vue';
import CourseKnowledgeView from '../views/CourseManageView/CourseKnowledge.vue';
import ChatList from '@/views/CourseManageView/ChatList.vue';
import HelpView from '../views/HelpView.vue';


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: LoginView
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: dashboardView
    },
    {
      path: '/help',
      name: 'help',
      component: HelpView
    },
    {
      path: '/course/addNew',
      name: 'CourseAddNew',
      component: CourseAddedView
    },
    {
      path: '/course/:course_number/info',
      name: 'CourseInfo',
      component: CourseInfoView
    },
    {
      path: '/course/:course_number/students',
      name: 'Students',
      component: CourseStuView
    },
    {
      path: '/course/:course_number/agent',
      name: 'Agent',
      component: CourseAgentView
    },
    {
      path: '/course/:course_number/knowledge',
      name: 'knowledge',
      component: CourseKnowledgeView
    },
    {
      path: '/course/:course_number/chatList',
      name: 'chatList',
      component: ChatList
    },
  ]
})

export default router
